<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Theruguru
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		Theruguru
 * @author		MukherjeeInfoServices Dev Team
 * @link		http://www.mukherjeeinfoservices.com
 * @since		Version 1.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * Theruguru Books Helpers
 *
 * @package		Theruguru
 * @subpackage	Helpers
 * @category	Helpers
 * @author		MukherjeeInfoServices Dev Team
 * @link		http://www.mukherjeeinfoservices.com
 */

// ------------------------------------------------------------------------


	/**
	 * Proper Book URL
	 *
	 * Formats book's url from book name and book id
	 *
	 * @access	public
	 * @param	integer Book ID
	 * @param	string	Book Name
	 * @return	string
	 */
	function book_url($book_id, $book_name) 
	{
		return site_url('buy-books/books/'.$book_id.'/'.url_title($book_name, 'dash', TRUE));
	}


/* End of file books_helper.php */
/* Location: ./application/helpers/books_helper.php */